package avicit.cbb.businessclass.fondsmanage.domain;

/**
 * 配置文件Bean类
 */

public class DSConfigBean {

	private String type = ""; // 数据库类型
	private String name = ""; // 连接池名字
	
	private String driver = ""; // 数据库驱动
	private String url = ""; // 数据库url
	private String username = ""; // 用户名
	private String password = ""; // 密码
	
	private int maxConnPer = 5; // 每个分区中的最大连接数
	private int minConnPer = 1; // 每个分区中的最小连接数
	private int partitionCount = 1; //分区数
	private long idleMaxAge = 3; //连接空闲时间(分钟)
	private int acquireIncrement = 5; //连接耗尽时BoneCP一次同时获取的连接数
	private int poolAvailabilityThreshold = 2; //设置连接池阀值
	private long connectionTimeout = 300000;//获取connection超时的时间
	private long idleConnectionTestPeriod = 1; //设置测试connection的间隔时间(分钟)

	/**
	 * 
	 */
	public DSConfigBean() {
		// TODO Auto-generated constructor stub
	}

	
	public String getType() {
		return type;
	}

	
	public void setType(String type) {
		this.type = type;
	}

	
	public String getName() {
		return name;
	}

	
	public void setName(String name) {
		this.name = name;
	}

	
	public String getDriver() {
		return driver;
	}

	
	public void setDriver(String driver) {
		this.driver = driver;
	}

	
	public String getUrl() {
		return url;
	}

	
	public void setUrl(String url) {
		this.url = url;
	}

	
	public String getUsername() {
		return username;
	}

	
	public void setUsername(String username) {
		this.username = username;
	}

	
	public String getPassword() {
		return password;
	}

	
	public void setPassword(String password) {
		this.password = password;
	}

	
	public int getMaxConnPer() {
		return maxConnPer;
	}


	
	public void setMaxConnPer(int maxConnPer) {
		this.maxConnPer = maxConnPer;
	}


	
	public int getMinConnPer() {
		return minConnPer;
	}


	
	public void setMinConnPer(int minConnPer) {
		this.minConnPer = minConnPer;
	}


	
	public int getPartitionCount() {
		return partitionCount;
	}


	
	public void setPartitionCount(int partitionCount) {
		this.partitionCount = partitionCount;
	}


	public long getIdleMaxAge() {
		return idleMaxAge;
	}

	
	public void setIdleMaxAge(long idleMaxAge) {
		this.idleMaxAge = idleMaxAge;
	}

	
	public int getAcquireIncrement() {
		return acquireIncrement;
	}

	
	public void setAcquireIncrement(int acquireIncrement) {
		this.acquireIncrement = acquireIncrement;
	}

	
	public int getPoolAvailabilityThreshold() {
		return poolAvailabilityThreshold;
	}

	
	public void setPoolAvailabilityThreshold(int poolAvailabilityThreshold) {
		this.poolAvailabilityThreshold = poolAvailabilityThreshold;
	}

	
	public long getConnectionTimeout() {
		return connectionTimeout;
	}

	
	public void setConnectionTimeout(long connectionTimeout) {
		this.connectionTimeout = connectionTimeout;
	}

	
	public long getIdleConnectionTestPeriod() {
		return idleConnectionTestPeriod;
	}

	
	public void setIdleConnectionTestPeriod(long idleConnectionTestPeriod) {
		this.idleConnectionTestPeriod = idleConnectionTestPeriod;
	}
}
